$(document).ready(function() {
	showLoading();
	$('title', parent.document).html($('title').text());
	setBaseUrl();
	addTitle("equipmentPowerTypeSave");
	searchEquipmentPowerType();
});
function searchEquipmentPowerType() {
	createComBody("detailOneBody", equipmentPowerTypeTable, undefined, 1);
	setTimeout(hideLoading, 700);
}
function confirm(){
	return checkForm("saveForm", equipmentPowerTypeTable);
}
function saveEquipmentPowerType(data){
	 formReset("saveForm");
     var result = data && data.result;
     if (result == "Success"){
    	 showMessge(messageContent["Insert.Success"], undefined, goback);
     } else if (result == "NotFound"){
    	 showMessge(messageContent["Insert.Failed"]);
     } else if (result == "UserIDNoNull"){
         showMessge(messageContent["UserIDNoNull"]);
     } else{
    	 showMessge(messageContent["Insert.Error"]);
     }
}
function goback() {
	window.parent.skipMenu('chargingEquipment/equipmentPowerType', 'drownDown2', '', 'equipmentPage', 'equipmentPowerType');
}